package com.nativetalk.dao;

import com.nativetalk.bean.course.teacher.TdNtTeachCourse;
import com.nativetalk.bean.course.teacher.TdNtTeachCourseInsert;

import java.util.List;
import java.util.Map;

/**
 * Created by lizhun on 15/12/24.
 * Modified by wangzheng on 17/02/15
 */
@MyBatisRepository
public interface TdNtTeachCourseDao {
    /**
     * @Purpose  查找教师课程关联表
     * @version  1.0
     * @author   lizhun
     * @param    map
     * @return   TdNtTeachCourse
     */
    public TdNtTeachCourse findTdNtTeachCourseByCouIdAndTeaId(Map<String,Object> map);
    /**
     * @Purpose  添加课程
     * @version  1.0
     * @author   lizhun
     * @param    tdNtTeachCourseInsert
     * @return   void
     */
    public void addTdNtTeachCourse(TdNtTeachCourseInsert tdNtTeachCourseInsert);
    /**
     * @Purpose  更新课程
     * @version  1.0
     * @author   lizhun
     * @param    map
     * @return   void
     */
    public void updateTdNtTeachCourse(Map<String,Object> map);

    /**
     * @Purpose  查找教师开通的课程
     * @version  4.1
     * @author   wangzheng
     * @param    tea_id
     * @return   List<TdNtTeachCourse>
     */
    public List<TdNtTeachCourse> findTdNtTeacherCourseByTeaId(Integer tea_id);
}
